﻿using HamcoWcs.Entitys.Bases;

namespace HamcoWcs.Entitys.BaseConfigs
{
    public class AlarmExplanation : BaseEntity
    {
        public static AlarmExplanation GetUnkAlarm(string code)
        {
            return new AlarmExplanation()
            {
                AlarmName = "未知异常",
                Code = code,
                ErrorType = "UnKnown",
                Level = -1,
                Module = "UnKnown",
                Suggestion = "UnKnown",
                Summary = "UnKnown",
            };
        }

        public string ErrorType { get; set; }
        public string Module { get; set; }
        public string Code { get; set; }
        public int Level { get; set; }
        public string AlarmName { get; set; }
        public string Summary { get; set; }
        public string Suggestion { get; set; }
    }
}
